<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:c="http://java.sun.com/jsp/jstl/core"
	  xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Application Name - Admin Login</title>
	<meta name="viewport" content="width=device-width,initial-scale=1" />
	<h:outputStylesheet library="css" name="bootstrap.min.css" />
	<style type="text/css">
		 body{background-color: #F7F7F6;}
		.login{padding-top: 65px;}
		.center{float: none; margin-left: auto; margin-right: auto;}
	</style>
</h:head>
<h:body>
	<!-- Navigation Bar -->
	<div class="navbar navbar-inverse navbar-fixed-top">
	  <div class="navbar-inner">
	  	<div class="container">
	        <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
	                <span class="icon-bar"></span>
	                <span class="icon-bar"></span>
	                <span class="icon-bar"></span>
	            </a>
	 
	    <a href="#" class="brand">Conservare Web</a>
	 
	    <div class="nav-collapse collapse pull-right">
	        <ul class="nav">
	            <li><a href="#forgot" data-toggle="modal"><i class="icon-user icon-white"></i> Forgot Password</a></li>
	            <li class="divider-vertical"></li>
	            <li><a href="#contact" data-toggle="modal"><i class="icon-envelope icon-white"></i> Contact Us</a></li>
	            <li class="divider-vertical"></li>
	 
	        </ul>
	    </div>
	 
	    </div>
	  </div>
	</div>
	<!-- Navigation Ends -->
	 
	<!-- Main Container -->
	<div class="container login">
	    <div class="row" >
	        <div class="center span4 well">
	            <legend>Por favor, faça login</legend>
	            
	            
	            
	            <h:panelGroup rendered="#{!empty param.login_error}">
		            <div class="alert alert-error">
		                <a class="close" data-dismiss="alert" href="#">×</a>Erro ao efetuar login!
		            </div>
					<br/> <br/>
					Motivo: #{SPRING_SECURITY_LAST_EXCEPTION.message}
				</h:panelGroup>
		
	            <form id="login" method="post" action="#{request.contextPath}/j_spring_security_check">
		            <input type="text" id="j_username" class="span4" name="j_username" placeholder="Username" />
		            <input type="password" id="j_password" class="span4" name="j_password" placeholder="Password" />
		            <label class="checkbox">
		                <input type="checkbox" name="_spring_security_remember_me" /> Entrar automaticamente
		            </label>
		            <button type="submit" name="submit" class="btn btn-primary btn-block">Entrar</button>
		            <script>
						document.getElementById("login").j_username.value = "#{SPRING_SECURITY_LAST_USERNAME}";
					</script>
	            </form>
	            
	        </div>
	    </div>
	</div>
	
	<p class="text-center muted "> Copyright 2013 - Conservare Web</p>
	<!-- Main Container Ends -->
	 
	
	<h:outputScript library="js" name="bootstrap.min.js"/>
</h:body>
</html>